const {
	db,
	dbCmd,
	result_success,
	result_error,
	consultCollection
} = require('../../common/constants')
module.exports = async function(params = {}) {
	if (!params.name) {
		return result_error('请输入姓名')
	}
	if (!params.mobile) {
		return result_error('请输入手机号')
	}
	params.create_time = new Date().getTime()
	await consultCollection.add(params)
	return result_success()
}